package com.example.demo.repository;

import com.example.demo.model.PersonalInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PersonalInfoRepository extends JpaRepository<PersonalInfo, Integer> {

    // 添加一个自定义查询方法来检查是否存在具有相同名字和电话号码的记录
    boolean existsByNameAndPhoneNumber(String name, String phoneNumber);
}